#if 0
#include "mdata.h"

#define MDATA_FLAG         0x1122334455667788

#define MDATA_RESET        0
#define MDATA_POWERUP      1

typedef struct {
	uint64_t flag;
	uint32_t stat;
} MData_t;

static MData_t MDEV_NO_INIT _mdata;

void mDataInit(void)
{
	if(_mdata.flag != MDATA_FLAG)
	{
		_mdata.flag = MDATA_FLAG;
		_mdata.stat = MDATA_POWERUP;
	}
	else
	{
		_mdata.stat = MDATA_RESET;
	}
}

MDevBool_e mDataIsPowerUp(void)
{
	return (_mdata.stat == MDATA_POWERUP);
}

#include "mdebug.h"
extern void mDataCounterTest(void);
void mDataTest(void)
{
	if(mDataIsPowerUp())
	{
		mDebugPuts("Now power on");
	}
	else
	{
		mDebugPuts("Now just reset");
	}

	mDataCounterTest();

	while(1);
}
#endif
